package com.ridbor001.demo.bean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.ridbor001.demo.service.RDBEvaluationService;

// TeacherEvaluationExcel.java

public class RDBTeacherEvaluationExcel {
    RDBEvaluationService evaluationService = new RDBEvaluationService();
    @ExcelProperty("课程名称")
    private String courseName;

    @ExcelProperty("评价维度")
    private String dimension;

    @ExcelProperty("平均分")
    private Double avgScore;

    @ExcelProperty("评价内容")
    private String comment;

    public RDBTeacherEvaluationExcel(String courseName, String dimension, Double avgScore, String comment) {
        this.courseName = courseName;
        this.dimension = evaluationService.translateDimension(dimension);
        this.avgScore = avgScore;
        this.comment = comment;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getDimension() {
        return dimension;
    }

    public void setDimension(String dimension) {
        this.dimension = dimension;
    }

    public Double getAvgScore() {
        return avgScore;
    }

    public void setAvgScore(Double avgScore) {
        this.avgScore = avgScore;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}